import {
	request
} from './req'

const telLogin = params => request('hc/hcUser/login', params, 'get')
const loginWX = params => request('hc/hcUser/loginForWx', params, 'get')
const loginForCompany = params => request('hc/hcUser/loginForCompany', params, 'get')
const loginPC = params => request('hc/hcUser/loginForPC', params, 'get')
const loginDing = params => request('hc/dingTalk/login', params, 'get')
const getCode = params => request('/hc/hcUser/sendSms', params, 'get')
const getSystemInfo = params => request('hc/hcSystemConf/getAllSystemConf', params, 'get')
const getMainCategories = params => request('hc/hcMainCategories/getList', params, 'get')
const getPosiList = params => request('hc/hcSite/list', params, 'get')
const getStoreListWithClass = params => request('hc/hcMerchant/getList', params, 'get')
const getStoreListWithClassForAll = params => request('hc/hcMerchant/getListForAll', params, 'get')
const addShopCar = params => request('hc/hcShoppingCart/add', params, 'post')
const getShopCarList = params => request('hc/hcShoppingCart/getListByUser', params, 'get')
const createOrder = params => request('hc/hcOrder/createOrder', params, 'post')
const getOrderInfoById = params => request('hc/hcOrder/queryById', params, 'get')
const getLatelyAddress = params => request('hc/hcSiteAddressDetails/getRecentAddress', params, 'post')
const emptyShopCar = params => request('hc/hcShoppingCart/doEmpty', params, 'get')
const getCreateOrderNum = params => request('hc/hcOrderMerchant/getListByAddress', params, 'get')
const getAddressList = params => request('hc/hcSiteAddressDetails/getAddressList', params, 'get')
const getMyInfo = params => request('hc/hcUser/queryById', params, 'get')
const saveMyAddress = params => request('hc/hcUser/setAddress', params, 'post')
const getMyOrderList = params => request('hc/hcOrderMerchant/getList', params, 'get')
const cancelOrder = params => request('hc/hcOrderMerchant/cancelOrder', params, 'get')
const addAfterSale = params => request('hc/hcAfterSales/add', params, 'post')
const getListAndAddress = params => request('hc/hcSite/getListAndAddress', params, 'get')
const getAddressById = params => request('hc/hcSiteAddressDetails/queryById', params, 'get')
const getAfterSalesById = params => request('hc/hcAfterSales/queryById', params, 'get')
const getDetailAddressList = params => request('hc/hcSiteAddressDetails/getListByUser', params, 'get')
const getDetailAddressListNew = params => request('hc/hcSiteAddressDetails/getListByUserNew', params, 'get')
const checkAddress = params => request('/hc/hcUser/checkAddress', params, 'get')
const countDayViews = params => request('hc/hcUser/countDayViews', params, 'get')
const h5Pay = params => request('/hc/hcWxPay/test', params, 'get')
const getPayResult = params => request('/hc/hcOrder/queryResult', params, 'post')
const getQRcodePayRes = params => request('/hc/hcOrder/queryRes', params, 'get')
const getAliPayRes = params => request('/hc/hcOrder/queryAliPayRes', params, 'get')
const setOpenId = params => request('/hc/hcUser/setOpenId', params, 'get')
const aliPay = params => request('/hc/hcWxPay/test', params, 'get')
const checkShopCarInfo = params => request('hc/hcShoppingCart/checkListByUser', params, 'get')
const getAirPayUrl = params => request('hc/hcAliPay/queryById', params, 'get')
const getStoreMoreFoodList = params => request('hc/hcMerchant/queryCommodityByMerchantId', params, 'get')
const getAddressDetInfo = params => request('hc/hcSiteAddressDetails/queryById', params, 'get')

const getStoreListWithCompany = params => request('hc/hcCompanyFoodDisplay/queryByCompanyIdNew', params, 'get')
const getCompanyInfo = params => request('hc/hcCompanyInfo/queryById', params, 'get')
const createOrderByCompany = params => request('hc/hcCompanyFoodOrder/add', params, 'post')
const getOrderListWithCompany = params => request('hc/hcCompanyFoodOrder/list', params, 'get')
const getOrderListWithCompanyByPage = params => request('hc/hcCompanyFoodOrder/userOrderList', params, 'get')
const createAfterSaleWidthCompany = params => request('hc/hcCompanyMerchantAfterSales/add', params, 'post')
const cancelOrderWithCompany = params => request('/hc/hcCompanyFoodOrder/cancelCompanyOrder', params, 'get')
const getAfterSalesByIdWithCompany = params => request('/hc/hcCompanyMerchantAfterSales/queryById', params, 'get')

const getAddressIdByShortId = params => request('hc/abc/dddd', params, 'get')
const queryDateByCompanyId = params => request('hc/hcCompanyFoodDisplay/queryDateByCompanyId', params, 'get')
const queryByCompanyIdAndDate = params => request('hc/hcCompanyFoodDisplay/queryByCompanyIdAndDate', params, 'get')
const getOrderByCompanyId = params => request('/hc/hcCompanyFoodOrder/getOrderByCompanyId', params, 'get')
const getCompanyDetailList = params => request('/hc/hcCompanyDetail/companyList', params, 'get', 0)
const companyFoodOrderExportXls = params => request('/hc/hcCompanyFoodOrder/customExportXls', params, 'post', 0)
const multiCustomExportXls = params => request('/hc/hcCompanyFoodOrder/multiCustomExportXls', params, 'post', 0)
const addFavoriteMerchant = params => request('/hc/hcMerchant/addFavoriteMerchant', params, 'get')
const delFavoriteMerchant = params => request('/hc/hcMerchant/delFavoriteMerchant', params, 'get')

const getCurrentMonthCompanyOrder = params => request('/hc/hcCompanyFoodOrder/userCurrentMonthOrderList', params,
	'get');
const confirmCurrentMonthCompanyOrder = params => request('/hc/hcCompanyFoodOrder/confirm', params, 'post');

const companyMemberLogin = params => request('hc/hcUser/companyEmployeeLogin', params, 'post')
const addCompanyMember = params => request('hc/hcUser/add', params, 'post');
const editCompanyMember = params => request('/hc/hcUser/update', params, 'post')
const delCompanyMember = params => request('/hc/hcUser/delete', params, 'post')
const getCopanyInfoById = params => request('/hc/hcCompanyInfo/queryById', params, 'get')
const getCompanyMemberList = params => request('/hc/hcUser/list', params, 'post')
const createCompanyOrder = params => request('/hc/hcCompanyFoodOrder/add', params, 'post');
const getCompanyOrderStateByCode = params => request('/hc/hcCompanyFoodOrder/queryCompanyOrderPcWxPayRes', params,
	'get')
const getCompanyOrderStateByWx = params => request('/hc/hcCompanyFoodOrder/queryCompanyOrderWxPayResult', params, 'get')
const getSurplusSubsidyMoney = params => request('/hc/hcUser/userSurplusSubsidyMoney', params, 'get')
const getUserWalletBalance = params => request('hc/hcUser/userWalletBalance', params, 'get');



export {
	telLogin, //手机号登录
	loginWX,
	loginForCompany, //公司登录
	loginPC, // PC登录
	loginDing, // 钉钉登录
	getCode, //获取验证码
	getSystemInfo, //获取系统配置时间
	getMainCategories, //获取主营品类
	getPosiList, //获取站点列表
	getStoreListWithClassForAll, //获取门店列表--首页页面（与下面主要返回结果排序不同，收藏、营业、打烊）
	getStoreListWithClass, //获取门店列表--点餐页面
	getStoreMoreFoodList, //获取商家更多的商品信息
	addShopCar, //添加购物车
	getShopCarList, //获取购物车数据
	createOrder, //创建订单
	getOrderInfoById, //通过订单id查询订单信息
	getLatelyAddress, //用经纬度换取最近地址
	emptyShopCar, //清空购物车
	getCreateOrderNum, //获取当前下单人数
	getAddressList, //获取地址列表
	getMyInfo, //获取我的个人信息
	saveMyAddress, //保存我的地址
	getMyOrderList, //获取我的订单列表
	cancelOrder, // 取消订单
	addAfterSale, //反馈售后意见
	getListAndAddress,
	getAddressById, //通过id获取地址明细
	getAfterSalesById, //通过ID查询售后信息
	getDetailAddressList, //下单时获取所有列表
	getDetailAddressListNew, //下单时获取所有列表-新的
	checkAddress, //检验地址
	countDayViews, //统计
	h5Pay, //h5支付
	getPayResult, //获取支付结果
	getQRcodePayRes, // 微信扫码 支付结果
	getAliPayRes, // 支付宝扫码 支付结果
	setOpenId, //设置openid
	aliPay, //
	checkShopCarInfo, //下单前检查购物车相关信息
	getAirPayUrl, //获取支付宝跳转内容
	getAddressDetInfo, //获取地址详细信息
	getStoreListWithCompany, //获取对应公司的商家商品信息
	getCompanyInfo, //获取企业信息
	createOrderByCompany, //下单--企业端
	getOrderListWithCompany, //订单查询--企业端
	getOrderListWithCompanyByPage, //订单分页查询--企业端
	createAfterSaleWidthCompany, //提交售后--企业端
	cancelOrderWithCompany, //取消订单--企业端
	getAfterSalesByIdWithCompany, //查询售后详情--企业端
	getAddressIdByShortId, // 通过大厦简称获取大厦ID-- 单店模式
	queryDateByCompanyId, // 获取公司的点餐日期
	queryByCompanyIdAndDate, // 根据日期及id 获取对应公司的商家商品信息,对应getStoreListWithCompany
	getOrderByCompanyId, // 企业行政菜品订单列表
	getCompanyDetailList, // 企业行政菜品历史订单汇总
	companyFoodOrderExportXls, // 企业行政菜品单日订单下载
	multiCustomExportXls, // 企业行政菜品单日订单下载--按日期批量下载
	addFavoriteMerchant, // 用户收藏店铺
	delFavoriteMerchant, // 用户取消收藏店铺


	getCurrentMonthCompanyOrder, //获取本月我公司订单数据
	confirmCurrentMonthCompanyOrder, //确认本月公司我公司订单数据

	companyMemberLogin, //公司会员登录
	addCompanyMember, //添加公司员工
	editCompanyMember, //编辑员工信息
	delCompanyMember, //删除公司员工信息
	getCopanyInfoById, //通过id查询公司详情
	getCompanyMemberList, //获取企业员工列表
	createCompanyOrder, //创建订单
	getCompanyOrderStateByCode, //获取企业订单的查询状态--通过扫码支付
	getCompanyOrderStateByWx, //获取企业订单的查询状态--通过微信支付
	getSurplusSubsidyMoney, //获取用户补贴剩余金额
	getUserWalletBalance, //获取用户钱包余额
}